of

public static SslPrivateKey of(Array<byte> derEncoded)

Creates an SslPrivateKey instance for the given bytes.

Parameters

derEncoded

the DER-encoded representation of the SSL private key. It can be EC or RSA private keys. Cannot be empty

Throws

when the given derEncoded bytes are empty